package com.slkj.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName Userinfo.java
 * @Description TODO
 * @createTime 2020年03月06日 20:41:00
 */
public class Userinfo implements Serializable {

    private String id;
    private String username;
    private String password;
    private String roleId;
    private String phone;
    private String email;
    private String aId;
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date prevLoginTime;
    private int isonline;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getPrevLoginTime() {
        return prevLoginTime;
    }

    public void setPrevLoginTime(Date prevLoginTime) {
        this.prevLoginTime = prevLoginTime;
    }

    public int getIsonline() {
        return isonline;
    }

    public void setIsonline(int isonline) {
        this.isonline = isonline;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getaId() {
        return aId;
    }

    public void setaId(String aId) {
        this.aId = aId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Userinfo{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", roleId='" + roleId + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", aId='" + aId + '\'' +
                ", name='" + name + '\'' +
                ", prevLoginTime=" + prevLoginTime +
                ", isonline=" + isonline +
                '}';
    }
}
